import Vue from 'vue'
import App from './App'
import uView from "uview-ui";
Vue.use(uView);

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})

const floatTouch = index=>{  
    if(index==1){
    	uni.showToast({
    		title:"联系客服"
    	})
    }else if(index==2){
    	uni.switchTab({
    		url:"/pages/tabBar/cart"
    	})
    }else if(index==3){
    	uni.switchTab({
    		url:"/pages/tabBar/home"
    	})
    }else if(index==4){
    	uni.navigateTo({
    		url:"/user/msg"
    	})
    }else if(index==5){
    	uni.navigateTo({
    		url:"/user/extension"
    	})
    }
}
Vue.prototype.$uniApi={floatTouch};
// http接口API集中管理引入部分
import httpApi from '@/common/http.api.js'
Vue.use(httpApi, app)

app.$mount()
